package com.jerry.security.service;

import com.jerry.security.dao.RoleDao;
import com.jerry.security.model.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Jerry.Wu
 * @description:
 * @date 2018/9/4 16:51
 */
@Service
public class RoleService extends BaseService<Role, Integer> {

    @Autowired
    private RoleDao roleDao;

    public List<Role> findRolesByUserId(Integer userId) {
        return roleDao.findRolesByUserId(userId);
    }

}
